#ifndef PICTURE_H_
#define PICTURE_H_
#include <string>
#include <gst/gst.h>
#include <glib.h>
#include <unistd.h>
#include <stdio.h>
#include<stdint.h>

class Picture
{
 public:
  Picture(std::string l,int w,int h); //picture properties setting
  int  picture_display();
  ~Picture(){};
  friend gboolean bus_call1(GstBus *bus,GstMessage *msg,gpointer data);
  friend void on_pad_added1 (GstElement *element,GstPad *pad,gpointer data);

 private: 
  std::string picture_location;
  int picture_width;
  int picture_height;
  GMainLoop *loop;
  GstElement *pipeline,*source,*decoder,*sink,*videoscale,*convert;
  GstBus *bus;
  GstCaps *caps;

         
};

void settime(uint32_t time);
#endif
